# -*- coding: utf-8 -*-
##############################################################################
#
#    OpenERP, Open Source Management Solution
#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
# a
##############################################################################

from openerp.osv import fields, osv
from openerp.tools.translate import _


class partner_glassfix(osv.osv):
    _inherit = "res.partner"
    _description = "partner_glassfix.py..."
    _columns = {

        # vehical details...
        'reg_no': fields.char('Registration No', size=50),       
        'brand': fields.char('Brand/Model', size=50),
        'insurance': fields.char('Insurance Company', size=50),
        'policy_no': fields.char('Policy No/Usage', size=50),
        'policy_date': fields.date('Policy Expring Date'),
        'year_manu': fields.integer('Year of Manufacture'),
        'claim_no': fields.char('Claim No', size=50),
        'accident_date': fields.date('Date & time of Accident'),
        'reported_by': fields.char('Reported by / Checked with', size=50),
        'accident_cause': fields.char('Place & Cause of Accident', size=50),
        'rain_sensor': fields.boolean('Rain Sensor'),
        
        
        'appointment_date': fields.date('Appointment (date/time)'),
        'mobile_drive_in': fields.char('(Mobile/Drive-in)', size=50),
        
        'ic_no': fields.char('I/C no', size=50),
        'occupation': fields.char('Occupation', size=50),
        'postal_code': fields.char('Postal_Code', size=50),
        
        'phone_home': fields.char('Home Phone', size=50),
        'phone_office': fields.char('Office Phone', size=50),
        'description_of_crack': fields.text('Description of Crack', size=50),
        
        
        
#         'phone_home2': fields.char('Home Phone2', size=50),
#         'phone_home3': fields.char('Home Phone3', size=50),
#         'phone_home31': fields.char('Home Phone3', size=50),
#                 'name1': fields.char('Name1', size=50),
#                 'name2': fields.char('Name2', size=50),
    }
    strFormatTime = '%Y-%m-%d %H-%M-%S %Z'
    
    
    #   
partner_glassfix()


